package com.zhg.demo.mybatis.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("tb_user")
public class UserA extends Model<UserA> {

    private static final long serialVersionUID = 1L;

    @TableId
    private Integer id;//编号
    private String username;//用户名
    private String password;//密码

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    //省略get set方法

}


